/ MacTech 1 to 12
/ MacTech-vol-1-12.toast / Source / MacTech® Magazine / Volume 11 - 1995 / 11.12 Dec 95 / Frontier CGIs / CGI Framework 3.0.1 / Install files / suites.semaphores ![]() | < prev | next > |
MacBinary | 1995-10-29 | 2.1 KB | [2CLK/LAND] |
Confidence | Program | Detection | Match Type | Support |
---|---|---|---|---|
10% | dexvert | MacBinary (archive/macBinary) | fallback | Supported |
100% | file | MacBinary II, inited, Sun Oct 29 17:03:39 1995, modified Sun Oct 29 17:03:40 1995, creator 'LAND', type '2CLK' "suites.semaphores", at 0x80 2013 bytes resource Apple HFS/HFS+ resource fork, map offset 0x74d, map length 0x90, data length 0x64d, at 16 0x09646566, nextResourceMap 0xc8fb5c, fileRef 0x1378, list offset 0x1c, name offset 0x7e, 3 types, 0x53545220 'STR ' * 4 resource offset 0x1a | default (weak) | |
99% | file | data | default | |
100% | TrID | MacBinary 2 | default (weak) | |
100% | siegfried | fmt/1762 MacBinary (II) | default | |
100% | lsar | MacBinary | default |
id metadata | |
---|---|
key | value |
macFileType | [2CLK] |
macFileCreator | [LAND] |
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 11 73 75 69 74 65 73 | 2e 73 65 6d 61 70 68 6f |..suites|.semapho|
|00000010| 72 65 73 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |res.....|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 32 43 4c 4b 4c 41 4e | 44 01 00 00 00 00 00 00 |.2CLKLAN|D.......|
|00000050| 00 00 00 00 00 00 00 00 | 00 07 dd ac b9 aa bb ac |........|........|
|00000060| b9 aa bc 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 35 ac 00 00 |........|....5...|
|00000080| 00 00 01 00 00 00 07 4d | 00 00 06 4d 00 00 00 90 |.......M|...M....|
|00000090| 09 64 65 66 69 6e 65 50 | 61 72 61 6d 73 20 28 40 |.defineP|arams (@|
|000000a0| 70 61 72 61 6d 74 61 62 | 6c 65 29 0d 09 09 09 09 |paramtab|le).....|
|000000b0| 11 73 75 69 74 65 73 2e | 73 65 6d 61 70 68 6f 72 |.suites.|semaphor|
|000000c0| 65 73 02 00 00 00 32 43 | 4c 4b 4c 41 4e 44 01 00 |es....2C|LKLAND..|
|000000d0| 00 00 32 43 4c 4b 4c 41 | 4e 44 01 00 00 00 00 00 |..2CLKLA|ND......|
|000000e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000f0| 00 00 ac b9 aa bb 00 00 | 00 00 00 00 07 dd 72 69 |........|......ri|
|00000100| 6e 67 2e 70 61 74 74 65 | 72 6e 4d 61 74 63 68 20 |ng.patte|rnMatch |
|00000110| 28 22 3c 68 74 6d 6c 3e | 22 2c 20 73 74 72 69 6e |("<html>|", strin|
|00000120| 67 2e 6c 6f 77 65 72 20 | 28 61 64 72 73 63 72 69 |g.lower |(adrscri|
|00000130| 70 74 5e 29 29 20 3e 20 | 30 0d 09 09 09 09 09 72 |pt^)) > |0......r|
|00000140| 65 74 75 72 6e 20 28 77 | 65 62 73 65 72 76 65 72 |eturn (w|ebserver|
|00000150| 2e 68 74 74 70 48 65 61 | 64 65 72 20 28 29 20 2b |.httpHea|der () +|
|00000160| 20 68 6f 6c 64 65 72 29 | 0d 09 09 09 09 65 6c 73 | holder)|.....els|
|00000170| 65 0d 09 09 09 09 09 72 | 65 74 75 72 6e 20 28 77 |e......r|eturn (w|
|00000180| 00 00 00 06 05 34 2e 30 | 62 31 00 00 00 09 08 46 |.....4.0|b1.....F|
|00000190| 72 6f 6e 74 69 65 72 00 | 00 00 f0 00 01 04 4a 00 |rontier.|......J.|
|000001a0| 02 00 00 00 0c 00 00 00 | 68 00 00 02 00 00 0f 06 |........|h.......|
|000001b0| 47 65 6e 65 76 61 00 00 | 00 00 00 00 00 00 00 00 |Geneva..|........|
|000001c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001d0| 00 00 0c 00 00 00 00 00 | 00 00 00 00 00 06 54 00 |........|......T.|
|000001e0| 00 a4 d0 77 90 ac b9 aa | bb 00 00 00 09 00 00 00 |...w....|........|
|000001f0| a0 00 32 01 04 02 12 4c | 41 4e 44 00 00 00 00 00 |..2....L|AND.....|
|00000200| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000210| 00 00 00 00 00 00 00 6f | 6e 20 63 61 6c 6c 69 6d |.......o|n callim|
|00000220| 70 6f 72 74 65 72 20 28 | 70 61 74 68 29 20 c7 74 |porter (|path) .t|
|00000230| 68 69 73 20 73 63 72 69 | 70 74 20 69 73 20 73 61 |his scri|pt is sa|
|00000240| 76 65 64 20 77 69 74 68 | 20 61 6c 6c 20 65 78 70 |ved with| all exp|
|00000250| 6f 72 74 65 64 20 6f 62 | 6a 65 63 74 73 0d 09 72 |orted ob|jects..r|
|00000260| 65 74 75 72 6e 20 28 65 | 78 70 6f 72 74 2e 69 6d |eturn (e|xport.im|
|00000270| 70 6f 72 74 65 72 20 28 | 70 61 74 68 29 29 0d 80 |porter (|path))..|
|00000280| 00 00 00 00 00 80 00 00 | 00 00 00 00 00 00 0d 0c |........|........|
|00000290| 63 61 6c 6c 69 6d 70 6f | 72 74 65 72 00 00 00 02 |callimpo|rter....|
|000002a0| 01 31 00 00 05 27 74 61 | 62 6c 00 01 03 4a 00 00 |.1...'ta|bl...J..|
|000002b0| 04 99 00 00 00 1e 00 00 | 00 00 0d 01 00 00 00 05 |........|........|
|000002c0| 00 00 02 6c 0d 01 00 00 | 02 73 00 00 03 e0 0d 01 |...l....|.s......|
|000002d0| 00 00 03 e7 04 6c 6f 63 | 6b 00 00 02 63 00 01 04 |.....loc|k...c...|
|000002e0| 88 00 02 00 00 00 36 00 | 00 01 b1 00 05 02 00 00 |......6.|........|
|000002f0| 0f 06 47 65 6e 65 76 61 | 00 00 00 00 00 00 00 00 |..Geneva|........|
|00000300| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000310| 00 00 00 00 0c 00 00 00 | 00 00 00 00 00 00 00 06 |........|........|
|00000320| 54 00 00 ac 09 f5 f0 ac | b9 aa bc 00 00 00 1a 00 |T.......|........|
|00000330| 00 00 66 00 32 01 3e 02 | 26 4c 41 4e 44 00 00 00 |..f.2.>.|&LAND...|
|00000340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000350| 00 00 00 00 00 00 00 00 | 00 6f 6e 20 6c 6f 63 6b |........|.on lock|
|00000360| 20 28 73 65 6d 61 70 68 | 6f 72 65 6e 61 6d 65 2c | (semaph|orename,|
|00000370| 20 74 69 6d 65 6f 75 74 | 74 69 63 6b 73 29 0d 09 | timeout|ticks)..|
|00000380| 6c 6f 63 61 6c 20 28 61 | 64 72 20 3d 20 40 73 65 |local (a|dr = @se|
|00000390| 6d 61 70 68 6f 72 65 73 | 2e 76 61 6c 75 65 73 20 |maphores|.values |
|000003a0| 5b 73 65 6d 61 70 68 6f | 72 65 6e 61 6d 65 5d 29 |[semapho|rename])|
|000003b0| 0d 09 6c 6f 63 61 6c 20 | 28 73 74 61 72 74 74 69 |..local |(startti|
|000003c0| 63 6b 73 20 3d 20 63 6c | 6f 63 6b 2e 74 69 63 6b |cks = cl|ock.tick|
|000003d0| 73 20 28 29 29 0d 09 77 | 68 69 6c 65 20 64 65 66 |s ())..w|hile def|
|000003e0| 69 6e 65 64 20 28 61 64 | 72 5e 29 0d 09 09 73 79 |ined (ad|r^)...sy|
|000003f0| 73 2e 73 79 73 74 65 6d | 74 61 73 6b 20 28 29 20 |s.system|task () |
|00000400| c7 67 69 76 65 20 75 70 | 20 74 68 65 20 70 72 6f |.give up| the pro|
|00000410| 63 65 73 73 6f 72 0d 09 | 09 69 66 20 28 63 6c 6f |cessor..|.if (clo|
|00000420| 63 6b 2e 74 69 63 6b 73 | 20 28 29 20 2d 20 73 74 |ck.ticks| () - st|
|00000430| 61 72 74 74 69 63 6b 73 | 29 20 3e 20 74 69 6d 65 |artticks|) > time|
|00000440| 6f 75 74 74 69 63 6b 73 | 20 c7 77 61 69 74 65 64 |outticks| .waited|
|00000450| 20 6d 6f 72 65 20 74 68 | 61 6e 20 74 69 6d 65 6f | more th|an timeo|
|00000460| 75 74 74 69 63 6b 73 2c | 20 67 65 74 20 6f 75 74 |utticks,| get out|
|00000470| 0d 09 09 09 73 63 72 69 | 70 74 45 72 72 6f 72 20 |....scri|ptError |
|00000480| 28 22 53 65 6d 61 70 68 | 6f 72 65 20 74 69 6d 65 |("Semaph|ore time|
|00000490| 72 20 65 78 70 69 72 65 | 64 20 61 66 74 65 72 20 |r expire|d after |
|000004a0| 22 20 2b 20 74 69 6d 65 | 6f 75 74 74 69 63 6b 73 |" + time|outticks|
|000004b0| 20 2b 20 22 20 73 69 78 | 74 69 65 74 68 73 20 6f | + " six|tieths o|
|000004c0| 66 20 61 20 73 65 63 6f | 6e 64 2e 22 29 0d 09 6e |f a seco|nd.")..n|
|000004d0| 65 77 20 28 62 6f 6f 6c | 65 61 6e 74 79 70 65 2c |ew (bool|eantype,|
|000004e0| 20 61 64 72 29 20 c7 63 | 6c 61 69 6d 20 74 68 65 | adr) .c|laim the|
|000004f0| 20 73 65 6d 61 70 68 6f | 72 65 0d 09 72 65 74 75 | semapho|re..retu|
|00000500| 72 6e 20 28 74 72 75 65 | 29 0d 80 00 00 00 00 00 |rn (true|).......|
|00000510| 80 00 00 00 00 00 80 00 | 00 00 00 00 80 00 00 00 |........|........|
|00000520| 00 00 80 00 00 00 00 00 | 80 00 00 00 00 00 80 00 |........|........|
|00000530| 00 00 00 00 80 00 00 00 | 00 00 80 00 00 00 00 00 |........|........|
|00000540| 06 75 6e 6c 6f 63 6b 00 | 00 01 69 00 01 04 88 00 |.unlock.|..i.....|
|00000550| 02 00 00 00 1e 00 00 00 | cf 00 02 02 00 00 0f 06 |........|........|
|00000560| 47 65 6e 65 76 61 00 00 | 00 00 00 00 00 00 00 00 |Geneva..|........|
|00000570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000580| 00 00 0c 00 00 00 00 00 | 00 00 00 00 00 06 54 00 |........|......T.|
|00000590| 0f ac 09 f5 f0 ac b9 aa | bc 00 00 00 16 00 00 00 |........|........|
|000005a0| 95 00 3e 01 33 02 03 4c | 41 4e 44 00 00 00 00 00 |..>.3..L|AND.....|
|000005b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005c0| 00 00 00 00 00 00 00 6f | 6e 20 75 6e 6c 6f 63 6b |.......o|n unlock|
|000005d0| 20 28 73 65 6d 61 70 68 | 6f 72 65 6e 61 6d 65 29 | (semaph|orename)|
|000005e0| 0d 09 6c 6f 63 61 6c 20 | 28 61 64 72 20 3d 20 40 |..local |(adr = @|
|000005f0| 73 65 6d 61 70 68 6f 72 | 65 73 2e 76 61 6c 75 65 |semaphor|es.value|
|00000600| 73 20 5b 73 65 6d 61 70 | 68 6f 72 65 6e 61 6d 65 |s [semap|horename|
|00000610| 5d 29 0d 09 69 66 20 64 | 65 66 69 6e 65 64 20 28 |])..if d|efined (|
|00000620| 61 64 72 5e 29 20 c7 20 | 61 64 64 65 64 20 39 2f |adr^) . |added 9/|
|00000630| 31 30 2f 39 35 20 4d 41 | 48 20 2d 20 63 68 65 63 |10/95 MA|H - chec|
|00000640| 6b 73 20 66 6f 72 20 73 | 65 6d 61 70 68 6f 72 65 |ks for s|emaphore|
|00000650| 20 62 65 66 6f 72 65 20 | 64 65 6c 65 74 69 6e 67 | before |deleting|
|00000660| 0d 09 09 64 65 6c 65 74 | 65 20 28 61 64 72 29 20 |...delet|e (adr) |
|00000670| c7 72 65 6c 65 61 73 65 | 20 74 68 65 20 73 65 6d |.release| the sem|
|00000680| 61 70 68 6f 72 65 0d 09 | 72 65 74 75 72 6e 20 28 |aphore..|return (|
|00000690| 74 72 75 65 29 0d 80 00 | 00 00 00 00 80 00 00 00 |true)...|........|
|000006a0| 00 00 80 00 00 00 00 00 | 80 00 00 00 00 00 80 00 |........|........|
|000006b0| 00 00 00 00 06 76 61 6c | 75 65 73 00 00 00 8c 00 |.....val|ues.....|
|000006c0| 01 03 88 00 00 00 04 00 | 00 00 00 00 01 00 00 00 |........|........|
|000006d0| 00 00 00 00 03 00 00 00 | 0c 00 00 00 00 00 00 00 |........|........|
|000006e0| 00 00 00 00 00 00 00 00 | 00 ac 09 f6 80 ac b9 aa |........|........|
|000006f0| bc 00 00 00 1c 00 00 00 | 04 00 00 00 06 5f 00 06 |........|....._..|
|00000700| 47 65 6e 65 76 61 00 00 | 00 00 00 00 00 00 00 00 |Geneva..|........|
|00000710| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000720| 00 40 00 00 2c 01 41 00 | 90 02 80 00 00 00 00 00 |.@..,.A.|........|
|00000730| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000740| 00 00 15 00 15 00 4b 00 | 4a 00 4b 00 01 00 01 00 |......K.|J.K.....|
|00000750| 00 00 03 00 03 00 00 00 | 0c 00 00 00 00 00 00 00 |........|........|
|00000760| 00 00 00 00 00 00 00 00 | 00 ac 09 f5 dc ac b9 aa |........|........|
|00000770| bc 00 00 00 1c 00 00 00 | 06 00 00 00 06 5f 00 06 |........|....._..|
|00000780| 47 65 6e 65 76 61 00 00 | 00 00 00 00 00 00 00 00 |Geneva..|........|
|00000790| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007a0| 00 40 00 00 96 00 5a 01 | 0d 01 99 00 00 00 00 00 |.@....Z.|........|
|000007b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007c0| 00 00 15 00 15 00 15 00 | 4b 00 4a 00 4b 00 00 01 |........|K.J.K...|
|000007d0| 00 00 00 07 4d 00 00 06 | 4d 00 00 00 90 00 c8 fb |....M...|M.......|
|000007e0| 5c 13 78 00 00 00 1c 00 | 7e 00 02 53 54 52 20 00 |\.x.....|~..STR .|
|000007f0| 03 00 1a 73 63 70 74 00 | 00 00 4a 64 61 74 61 00 |...scpt.|..Jdata.|
|00000800| 00 00 56 00 80 ff ff 00 | 00 00 00 00 00 00 00 bf |..V.....|........|
|00000810| f4 ff ff 00 00 00 0a 00 | 00 00 00 00 82 ff ff 00 |........|........|
|00000820| 00 01 0b 00 00 00 00 00 | 7f ff ff 00 00 01 1c 00 |........|........|
|00000830| 00 00 00 00 81 ff ff 00 | 00 00 17 00 00 00 00 67 |........|.......g|
|00000840| e0 00 00 00 00 01 22 00 | c8 5e 64 11 73 75 69 74 |......".|.^d.suit|
|00000850| 65 73 2e 73 65 6d 61 70 | 68 6f 72 65 73 00 00 00 |es.semap|hores...|
|00000860| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000870| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+